package com.yellowpage.omc.o2o.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * CustomerExtInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "OMC_CUSTOMER_EXT_INFO")
public class CustomerExtInfo implements java.io.Serializable {

	// Fields

	private Long customerExtInfoId;
	private Integer customerId;
	private Integer extInfoId;
	private String value;
	private Integer createUser;
	private Date createTime;
	private Integer lastUpdateUser;
	private Date lastUpdateTime;

	// Constructors

	/** default constructor */
	public CustomerExtInfo() {
	}

	/** minimal constructor */
	public CustomerExtInfo(Integer customerId) {
		this.customerId = customerId;
	}

	/** full constructor */
	public CustomerExtInfo(Integer customerId, Integer extInfoId, String value,
			Integer createUser, Date createTime, Integer lastUpdateUser,
			Date lastUpdateTime) {
		this.customerId = customerId;
		this.extInfoId = extInfoId;
		this.value = value;
		this.createUser = createUser;
		this.createTime = createTime;
		this.lastUpdateUser = lastUpdateUser;
		this.lastUpdateTime = lastUpdateTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "CUSTOMER_EXT_INFO_ID", unique = true, nullable = false)
	public Long getCustomerExtInfoId() {
		return this.customerExtInfoId;
	}

	public void setCustomerExtInfoId(Long customerExtInfoId) {
		this.customerExtInfoId = customerExtInfoId;
	}

	@Column(name = "CUSTOMER_ID", nullable = false)
	public Integer getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	@Column(name = "EXT_INFO_ID")
	public Integer getExtInfoId() {
		return this.extInfoId;
	}

	public void setExtInfoId(Integer extInfoId) {
		this.extInfoId = extInfoId;
	}

	@Column(name = "VALUE", length = 200)
	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Column(name = "CREATE_USER")
	public Integer getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "LAST_UPDATE_USER")
	public Integer getLastUpdateUser() {
		return this.lastUpdateUser;
	}

	public void setLastUpdateUser(Integer lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "LAST_UPDATE_TIME", length = 0)
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

}